package com.sistemas.mse.servicio.holamunudo;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.sistemas.mse.dao.IProductDAO;
import com.sistemas.mse.model.Product;

@Service
@Transactional
public class ProductService {

	@Autowired
	private IProductDAO productDAO;

	public void create(final Product entity) {
		productDAO.create(entity);
    }
	
	public List<Product> getLst(){
		return productDAO.findAll();
	}
	
}
